//定义LED和按键引脚
#defince LED_PIN 12
#define BUTTON 14
void setup() {
  pinMode(led_pin,OUTPUT);
  pinMode(button_pin,INPUT_PULLDOWN);
}
int led_logic = 0;
bool status = false;

void loop() {
  // put your main code here, to run repeatedly:
  if (digitalRead(button_pin)){
    delay(10);
    if(digitalRead(button_pin)&& !status){
      led_logic = !led_logic;
      digitalWrite(led_pin,led_logic);
      status = !status;
      }else if(!digitalRead(button_pin)){
        status = false;}
    }
}
